﻿using Autofac.Extras.DynamicProxy;
using commonFramwork.Attribute;
using commonFramwork.Interceptor;
using Repository.entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace My.BLL.CacheService
{
    [Intercept(typeof(CacheIntercetor))]
    public interface IUserCacheService
    {

        /// <returns></returns>
        [CacheAttribute(commonFramwork.Enum.CacheMethod.get)]
        IEnumerable<User> GetUserInfo();

        [CacheAttribute(commonFramwork.Enum.CacheMethod.remove, "GetUserInfo")]
        void SetUserInfo(User user);
    }
}
